In order to obtain random numbers from the TPPXG distribution this function works in two parts. First it
generates n random \(\lambda\) values where \(\lambda|\alpha,\theta \sim \text{TPXG}(\alpha,\theta)\). Given
this, it generates n numbers X where \(X|\lambda \sim \text{Poisson}(\lambda)\).
References
"Wani, M. A., Ahmad, P. B., Para, B. A. and Elah, N. (2023). A new regression model for count data with applications to health care data. International Journal of Data Science and Analytics."